//
//  ViewController.m
//  12-转盘(了解)
//
//  Created by J on 16/3/23.
//  Copyright © 2016年 J. All rights reserved.
//

#import "ViewController.h"
#import "WheelView.h"

@interface ViewController ()
@property(nonatomic,weak)WheelView* wheel;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    //添加转盘View
    WheelView* wheel = [WheelView wheelView];
    wheel.center = self.view.center;
    self.wheel = wheel;
    [self.view addSubview:wheel];
    
    
    
}
- (IBAction)start:(UIButton *)sender {//开始旋转
    [self.wheel start];
}
- (IBAction)pause:(UIButton *)sender {//暂停旋转
    [self.wheel pause];
}



@end
